import { useGuessList } from '@/composables'
import { useMemberStore } from '@/stores'
const useMyHooks = () => {
  // 获取屏幕边界到安全区域距离
  const { safeAreaInsets } = uni.getSystemInfoSync()
  // 订单选项
  const orderTypes = [
    { type: '1', text: '待付款', icon: 'icon-currency' },
    { type: '2', text: '待发货', icon: 'icon-gift' },
    { type: '3', text: '待收货', icon: 'icon-check' },
    { type: '4', text: '待评价', icon: 'icon-comment' },
  ]
  // 获取会员信息
  const memberStore = useMemberStore()

  const { guessRef, onScrolltolower } = useGuessList()

  return {
    safeAreaInsets,
    orderTypes,
    memberStore,
    guessRef,
    onScrolltolower,
  }
}

export default useMyHooks
